<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"/>
    <title>记录</title>
    <link rel="stylesheet" type="text/css" media="all" href="/layui/css/layui.css"/>
    <script type="text/javascript" src="/layui/layui.all.js"></script>
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript" src="/js/bootstrap.js"></script>
    <script type="text/javascript" src="/js/myJs.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="/css/common.css"/>
    <link rel="stylesheet" type="text/css" media="all" href="/css/CaseManager.css"/>
</head>
<body>
<br/>
<div class="layui-col-xs-offset11">
    <div id="tuichu1"></div>
</div>
<!--主内容-->
<div class="layui-fluid">
    <div class="layui-col-xs12">
        <div style="width: 160px; font-weight: bolder; font-size: large; margin-top: 20px; margin-left: auto; margin-right: auto">下载观看分享记录</div>
        <br/> <br/>

        <br/>
        <table class="layui-table" id="brokerVideoID" lay-filter="table"></table>
    </div>
</div>


<script>
    function zhuxiao(){
        var storage = window.localStorage;
        storage.clear();
    }
    $(function () {
        var storage = window.localStorage;
        var result ='<br/><br/><div>'+storage.username+'    <a href="/plateForm/login" onclick="zhuxiao()" style="color: #1E9FFF;font-weight:bold">( 注销 ) </a>'+'</div>';
        $('#tuichu1').append(result);
        layui.use('form', function(){
            var form = layui.form;
            form.render();
        });
        var it =JSON.parse(localStorage.getItem("username"))
        if (it == null){
            loadPage("/plateForm/login")
        }
    })
    layui.use('form', function(){
        var form = layui.form;
        form.render();
    });
    layui.use('table', function(){
        var table = layui.table,$ = layui.jquery;
        table.render({
            elem: '#brokerVideoID'
            ,url:'/Request/EmployeeRecord'
            ,cellMinWidth: 80
            ,page: true
            ,cols: [[
                {field:'loginName', title: '账户', align:'center', width: 180}
                ,{field:'downCount', title: '下载量',  align:'center', width: 400}
                ,{field:'readCount', title: '阅读量',  align:'center', minWidth: 400}
                ,{field:'shareCount', title: '分享量', align:'center', width: 400}
                ,{field:'remind', title: '提醒', align:'center', width: 500}
            ]],
            where:{

            },
            request: {
                pageName: 'pageNumber',
                limitName: 'pageSize'
            },
            response: {
                countName: 'total',
                dataName: 'rows'
            }
        });
        var $ = layui.$, active = {
            /*表格重载*/
            reload: function(){

                table.reload('brokerVideoID', {
                    page: {
                        curr: 1 //重新从第 1 页开始
                    }
                    ,where: {
                    }
                });
            },
        };
        $('.demoTable .layui-btn').on('click', function(){
            var type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
        });

        $('.layui-btn').on('click', function(){
            var type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
        });

    });

</script>

<div class="fly-footer" style="margin-right: auto; margin-left: auto; width: 200px;">
    <p><a href="#" target="_blank">我打 - 资源分享</a> 2018</p>
</div>

</body>


</html>